{{include file="header_inc.html"}}
<script type="text/javascript">
	$(document).ready(function() {
		$.formValidator.initConfig({
			autotip : true,
			formid : "myform",
			onerror : function(msg) {
			}
		});
		$("#realname").formValidator({
			onshow : "请输入真实姓名",
			onfocus : "请输入真实姓名"
		}).inputValidator({
			min : 2,
			max : 20,
			onerror : "真实姓名应该为2-20位之间"
		})
		$("#email").formValidator({
			onshow : "请输入电子邮件",
			onfocus : "请输入电子邮件",
			oncorrect : "电子邮件格式正确"
		}).regexValidator({
			regexp : "email",
			datatype : "enum",
			onerror : "电子邮件格式正确"
		}).ajaxValidator({
			type : "post",
			url : "/ajax/isemail/",
			data : "",
			datatype : "html",
			async : 'false',
			success : function(data) {
				if (data == "1") {
					return true;
				} else {
					return false;
				}
			},
			buttons : $("#dosubmit"),
			onerror : "该邮箱已经存在",
			onwait : "请稍候..."
		}).defaultPassed();
	})
</script>
<body>
	<div class="subnav">
		<div class="content-menu ib-a blue line-x"></div>
	</div>
	<div class="pad_10">
		<div class="common-form">
			<form name="myform" action="/panel/manage/editinfo/" method="post"
				id="myform">
				<input type="hidden" name="info[userid]"
					value="{{$admin_info.userid}}"></input> <input type="hidden"
					name="info[username]" value="{{$admin_info.username}}"></input>
				<table width="100%" class="table_form contentWrap">
					<tr>
						<td width="80">用户名</td>
						<td>{{$admin_info.username}}</td>

					</tr>

					<tr>
						<td width="80">最后登录时间</td>
						<td>{{$admin_info.lastlogintime|date_format:"%Y-%m-%d
							%H:%M:%S"}}</td>
					</tr>

					<tr>
						<td width="80">最后登录IP</td>
						<td>{{$admin_info.lastloginip}}</td>
					</tr>

					<tr>

						<td>真实姓名</td>
						<td><input type="text" name="info[realname]" id="realname"
							class="input-text" size="30" value="{{$admin_info.realname}}"></input></td>
					</tr>
					<tr>
						<td>电子邮件</td>
						<td><input type="text" name="info[email]" id="email"
							class="input-text" size="40" value="{{$admin_info.email}}"></input>
						</td>
					</tr>
					<tr>
						<td>语言</td>
						<td><select name="info[lang]"> {{if
								in_array('zh-cn',$dir_array)}}
								<option value="zh-cn" {{if $admin_info.lang==
									'zh-cn'}}selected="selected"{{/if}}>中文 - 简体中文</option>{{/if}}
								{{if in_array('en',$dir_array)}}
								<option value="en" {{if $admin_info.lang==
									'en'}}selected="selected"{{/if}}>English</option>{{/if}}
						</select></td>
					</tr>

				</table>

				<div class="bk15"></div>
				<input name="dosubmit" type="submit" value="提 交" class="button"
					id="dosubmit">
			</form>

		</div>
	</div>
</body>
{{include file="footer.html"}}
